const mongoose = require("mongoose");

mongoose.connect("mongodb+srv://2732849023:kV2y2TU4cYPq6Y9C@cluster0.plvxg2d.mongodb.net/course").then(() => {

    console.log("连接成功");
  })
  .catch((err) => {
    console.log("连接失败");
  });
  
module.exports = mongoose